# Copyright (C) 2009 MASSART GAUTHIER and Careil Baptiste
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#

SRCS	=	bantumi/ban_IA.c \
		bantumi/ban_affichage.c \
		bantumi/ban_main.c \
		bantumi/ban_man.c \
		bantumi/ban_menu.c \
		casino/cas_main.c \
		casino/cas_man.c \
		casino/cas_menu.c \
		chifumi/chif_elements.c \
		chifumi/chif_jeu.c \
		chifumi/chif_main.c \
		chifumi/chif_man.c \
		chifumi/chif_menu.c \
		common/annimations.c \
		common/bienvenue.c \
		common/credits.c \
		common/files.c \
		common/fonctions.c \
		common/gest_packs.c \
		common/gest_son.c \
		common/historiques.c \
		common/http.c \
		common/init_start.c \
		common/log.c \
		common/maj.c \
		common/md5.c \
		common/menus.c \
		common/options.c \
		common/quit.c \
		common/utilitaires.c \
		curses/cursor.c \
		curses/init.c \
		curses/input.c \
		excit/excit_affichage.c \
		excit/excit_main.c \
		excit/excit_menu.c \
		excit/excit_niveau.c \
		main.c \
		mini/minIni.c \
		morpion/morp_IA.c \
		morpion/morp_affichage.c \
		morpion/morp_main.c \
		morpion/morp_menu.c \
		morpion/morp_verif.c \
		pendu/pendu_bonhomme.c \
		pendu/pendu_fonction.c \
		pendu/pendu_main.c \
		pendu/pendu_menu.c \
		plus_moins/pom_main.c \
		plus_moins/pom_man.c \
		plus_moins/pom_marche.c \
		plus_moins/pom_menu.c \
		pong/pong_main.c \
		pong/pong_man.c \
		pong/pong_menu.c \
		pousse_caisse/pou_affichage.c \
		pousse_caisse/pou_file_matrix.c \
		pousse_caisse/pou_level_editor.c \
		pousse_caisse/pou_main.c \
		pousse_caisse/pou_man.c \
		pousse_caisse/pou_menu.c \
		puissance_4/pui_IA.c \
		puissance_4/pui_affichage.c \
		puissance_4/pui_main.c \
		puissance_4/pui_menu.c \
		reversi/rev_affichage.c \
		reversi/rev_main.c \
		reversi/rev_menu.c \
		snake/snake_affichage.c \
		snake/snake_barre.c \
		snake/snake_main.c \
		snake/snake_menu.c \
		snake/snake_niveau.c \
		tetris/tet_affichage.c \
		tetris/tet_main.c \
		tetris/tet_man.c \
		tetris/tet_menu.c \
		tours_hanoi/hanoi_affichage.c \
		tours_hanoi/hanoi_main.c \
		tours_hanoi/hanoi_man.c \
		tours_hanoi/hanoi_menu.c \
		types/bool.c \
		types/containers.c \
		types/files.c \
		types/list.c \
		types/piles.c
OBJS	=	$(SRCS:.c=.o)
NAME	=	les-indemodables

CC	= gcc -I/usr/local/include -L/usr/local/lib
RM	= rm -f
OPTI	= -O2
CFLAGS	= $(OPTI) -W -Wall
LFLAGS	= $(OPTI) -lpthread -lcslp -lncursesw -lSDL -lSDL_mixer -lcurl -lm -lcrypto

all		: $(NAME)

$(NAME)		: $(OBJS)
	$(CC) $(OBJS) -o $(NAME) $(LFLAGS)

clean		:
	$(RM) $(OBJS)

fclean		: clean
	$(RM) $(NAME)

re		: fclean all
